package com.example.model.article.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.model.common.annotation.IdEncrypt;
import io.swagger.models.auth.In;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("ap_article_content")
public class ApArticleContent implements Serializable {

    @TableId(value = "id",type = IdType.ID_WORKER)
    private String id;

    /**
     * 文章id
     */
    @TableField("article_id")
    @IdEncrypt
    private String articleId;

    /**
     * 文章内容
     */
    private String content;

    @TableField(exist = false)
    private String title;

    @TableField(exist = false)
    private Integer authorId;

    @TableField(exist = false)
    private String authorName;

    @TableField(exist = false)
    private Date publishTime;

    @TableField(exist = false)
    private boolean isFollowed;

    @TableField(exist = false)
    private boolean isLiked;

    @TableField(exist = false)
    private boolean isCollected;
}
